package com.sc.nft.task;

import com.sc.nft.feign.SmsFeignClient;
import com.sc.nft.feign.WxMiniUserPointsClient;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@RequiredArgsConstructor
@Slf4j
public class MiniMallPointsExpireHandlerTask {

    private final WxMiniUserPointsClient wxMiniUserPointsClient;

    /**
     * 定时跑过期积分（只改变状态）
     */
    @XxlJob("miniMallExpirePoints")
    public void miniMallExpirePoints()  {
        wxMiniUserPointsClient.pointsExpire();
    }
}
